import { CoolController, BaseController } from '@cool-midway/core';
import { Body, Inject, Post, Get, Query } from '@midwayjs/core';
import { CollectionInfoEntity } from '../../entity/info';
import { CollectionInfoService } from '../../service/info';

/**
 * collection模块-收藏信息
 */
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: CollectionInfoEntity,
  service: CollectionInfoService,
  pageQueryOp: {
    keyWordLikeFields: ['collectionId', 'userId',],
    fieldEq: ['type', 'status']
  }
})
export class AdminCollectionInfoController extends BaseController {
  @Inject()
  collectionInfoService: CollectionInfoService;
  

}
